package org.yong.springbootcmd.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yong.springbootcmd.model.vo.Result;

@RestController
@RequestMapping("/cmd")
public class CmdController {

    @RequestMapping("/do")
    public Result send(String cmd) {
        return Result.data("执行 " + cmd);
    }

}
